package chapter_21.generic_interface;

/**
 * Created by Administrator
 * Created time 2018/8/8 18:28.
 */
public class ListQueueTest {

    public static void main(String[] args) {
        ListQueue<String> stringListQueue = new ListQueue<>();
        stringListQueue.queue("A");
        stringListQueue.queue("B");
        stringListQueue.queue("C");
        stringListQueue.queue("D");
        stringListQueue.queue("E");

        System.out.println("元素删除前: " + stringListQueue);
        System.out.println("删除元素: " + stringListQueue.dequeue());
        System.out.println("元素删除后: " + stringListQueue);
    }

}
